你需要替换掉huanf-xue-content/xue-content-service/src/main/java/com/huanf/content/feignclient/SearchServiceClientFallbackFactory.java

package com.huanf.content.feignclient;

import com.huanf.po.CourseIndex;
import feign.hystrix.FallbackFactory;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author: 35238
 * 功能: 当feign调用异常的时候，也就是SearchServiceClient接口异常的时候，就会走这个SearchServiceClientFallbackFactory类
 * 时间: 2024-06-07 22:14
 */
@Component
public class SearchServiceClientFallbackFactory implements FallbackFactory<SearchServiceClient> {
    @Override
    public SearchServiceClient create(Throwable throwable) {
        return new SearchServiceClient() {
            @Override
            public Boolean add(CourseIndex courseIndex) {
                System.err.println("xue-content-service模块在远程调用huanf-xue-search模块时无响应或发生异常，已熔断，相关堆栈信息: "+throwable.toString());
                return false;
            }
            @Override
            public Boolean del(String id){
                System.err.println("xue-content-service模块在远程调用huanf-xue-search模块时无响应或发生异常，已熔断，相关堆栈信息: "+throwable.toString());
                return false;
            }
        };
    }
}